{  Statement: http://acmp.ru/?main=task&id_task=62
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
    x,y:longint;
    cx,cy:char;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(cx,cy);
x := ord(cx) - 64;
y := ord(cy) - 48;
if odd(x) = odd(y) then write('BLACK') else write('WHITE');
end.